home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_3
/
phoonsrc
/
libi
/
divsi3.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-20
|
214b
|
17 lines
#include "common.h"
SItype
__divsi3 (a, b)
SItype a, b;
{
unsigned SItype q, r;
int neg = (a < 0) != (b < 0);
if (a < 0) a = -a;
if (b < 0) b = -b;
divmodu (q, r, a, b);
return neg ? -q : q;
}